<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title></title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="icon" href="">
    <link href="https://static.9hive.cn/global/vendor/bootstrap-3.3.7/bootstrap.min.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/nprogress/nprogress.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/fonts/font-awesome/font-awesome.min.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/icheck/icheck.min.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/animate/animate.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/bootstrap-table.min.css?v=1.1" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/common/common_20170925.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/inside/inside.css?v=1" rel="stylesheet">
    <%
    var isAdd = false;
    var isEdit = false;
    if(isEmpty(memberRank.id)){
    isAdd = true;
    }else{
    isEdit = true;
    }%>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content ibox float-e-margins">
    <div class="ibox-title">
        <div class="pull-left mbx">
            品牌用户<span class="line">/</span>
            会员级别<span class="line">/</span>
            <span class="current"><%if(isAdd){%>添加等级<%}else{%>编辑等级<%}%></span>
        </div>
    </div>
    <div class="ibox-content">
        <form method="post"  action="<%if(isAdd){%>${base}/shop/memberrank/save<%}else{%>${base}/shop/memberrank/update<%}%>" class="form-horizontal form-validate">
            <input type="hidden" name="memberRank.id" value="${memberRank.id!}" />
            <div class="form-group">
                <label class="col-sm-2 control-label">等级名称：</label>
                <div class="col-sm-3">
                    <input type="text" name="memberRank.name" value="${memberRank.name!}" class="form-control input-sm" required="true">
                </div>
                <span class="help-block"><span class="maroon">*</span></span>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">等级形式：</label>
                <div class="col-sm-3">
                    <select name="memberRank.type" class="form-control input-sm" style="height: 31px">
                        <option value="1" <%if(memberRank.type! == 1){print("selected");}%>>消费额</option>
                        <option value="2" <%if(memberRank.type! == 2){print('selected');}%>>积分</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">优惠百分比：</label>
                <div class="col-sm-3">
                    <input type="number" name="memberRank.preferentialScale" value="${memberRank.preferentialScale!}" class="form-control input-sm" required="true">
                </div>
                <span class="help-block"><span class="maroon">*请输入0-100的正整数!</span></span>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">所需积分：</label>
                <div class="col-sm-3">
                    <input type="number" name="memberRank.point" value="${memberRank.point!}" class="form-control input-sm" required="true">
                </div>
                <span class="help-block"><span class="maroon">*填写0或正整数字</span></span>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">所需消费额：</label>
                <div class="col-sm-3">
                    <input type="number" name="memberRank.moneyNum" value="${memberRank.moneyNum!}" class="form-control input-sm" required="true">
                </div>
                <span class="help-block"><span class="maroon">*填写0或正整数字</span></span>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">是否默认：</label>
                <div class="col-sm-3">
                    <select name="memberRank.isDefault" value="${memberRank.isDefault!}" class="form-control input-sm" style="height: 31px">
                        <option value="0" <%if(isNotEmpty(memberRank)&&!(memberRank.isDefault)){print('selected');}%>>否</option>
                        <option value="1" <%if(isNotEmpty(memberRank)&&memberRank.isDefault!){print('selected');}%>>是</option>
                    </select>
                </div>
                <span class="help-block"><span class="maroon">*若选择是,则会员刚注册或者扫码时默认该会员等级!</span></span>
            </div>
            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-2">
                    <button class="btn btn-primary" type="submit">保存</button>
                    <button class="btn btn-white" onclick="history.back()" type="button">取消</button>
                </div>
            </div>
        </form>
    </div>
</div>

<script src="https://static.9hive.cn/global/vendor/jquery/jquery-2.1.4.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/nprogress/nprogress.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-3.3.7/bootstrap.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-validate/jquery.validate.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-validate/additional-methods.min.js"></script>

<script src="https://static.9hive.cn/global/vendor/jquery-validate/localization/messages_zh.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-ajaxform/ajax-form.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/bootstrap-table.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/layer/layer.js"></script>
<!-- 自定义js -->
<script src="https://static.9hive.cn/global/vendor/inside/inside20170925.js"></script>
</body>
</html>